<?php

class CHCPlotEvents extends AbstractHCObject
{
    /**
     *  Fires when the series is clicked. 
     *  The this keyword refers to the series object itself. 
     *  One parameter, event, is passed to the function. 
     *  This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts. 
     *  
     *  Additionally, event.point  holds a pointer to the nearest point on the graph. 
     *  
     * @param String $psString
     */
    public function setOnCLick($psString)
    {
        if (CSDebug::assertString($psString)) return false;
        
        $this->setParam('click',$psString);
    }
    
    /**
     *  Fires when the legend item belonging to the series is clicked. 
     *  The this keyword refers to the series object itself. 
     *  One parameter, event, is passed to the function. 
     *  This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts. 
     *  
     *  The default action is to toggle the visibility of the series. 
     *  
     *  This can be prevented by calling event.preventDefault(). 
     *  
     * @param $psString
     */
    public function setOnlegendItemClick($psString)
    {
        if (CSDebug::assertString($psString)) return false;
        
        $this->setParam('legendItemClick',$psString);
    }
    
    
    /**
     *  Fires when the mouse enters the graph. 
     *  The this keyword refers to the series object itself. 
     *  One parameter, event, is passed to the function. 
     *  This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts. 
     *  
     * @param $psString
     */
    public function setOnMouseOver($psString)
    {
        if (CSDebug::assertString($psString)) return false;
        
        $this->setParam('mouseOver',$psString);
    }
    
    
    /**
     *  Fires when the mouse leaves the graph. 
     *  The this keyword refers to the series object itself. 
     *  One parameter, event, is passed to the function. 
     *  This contains common event information based on jQuery or MooTools depending on which library is used as the base for Highcharts. 
     *  
     * @param $psString
     */
    public function setOnMouseOut($psString)
    {
        if (CSDebug::assertString($psString)) return false;
        
        $this->setParam('mouseOut',$psString);
    }
}

?>